package servlet;

public class AuxRow {
	private Pair first;
	private Pair second;
	private Pair third;
	
	public AuxRow(int first) {
		this.first = new Pair(first);
		this.second = new Pair(first+1);
		this.third = new Pair(first+2);
	}
	
	public Pair getFirst() {
		return first;
	}

	public void setFirst(Pair first) {
		this.first = first;
	}

	public Pair getSecond() {
		return second;
	}

	public void setSecond(Pair second) {
		this.second = second;
	}

	public Pair getThird() {
		return third;
	}

	public void setThird(Pair third) {
		this.third = third;
	}
	
	
	public Pair getColumn(int number) {
		switch (number % 3) {
		case (1):
			return first;			
		case (2):
			return second;			
		case (0):
			return third;			
		}
		return first;
	}
	

}
